import request from '@/utils/request'

// 查询充电桩状态监控列表
export function listChargingpiles(query) {
  return request({
    url: '/system/chargingpiles/list',
    method: 'get',
    params: query
  })
}

// 查询充电桩状态监控详细
export function getChargingpiles(cid) {
  return request({
    url: '/system/chargingpiles/' + cid,
    method: 'get'
  })
}

// 新增充电桩状态监控
export function addChargingpiles(data) {
  return request({
    url: '/system/chargingpiles',
    method: 'post',
    data: data
  })
}

// 修改充电桩状态监控
export function updateChargingpiles(data) {
  return request({
    url: '/system/chargingpiles',
    method: 'put',
    data: data
  })
}

// 删除充电桩状态监控
export function delChargingpiles(cid) {
  return request({
    url: '/system/chargingpiles/' + cid,
    method: 'delete'
  })
}

// 查询充电桩总体
export function getAnalyse(query) {
  return request({
    url: '/system/chargingpiles/ana/ana',
    method: 'get',
    params: query
  })
}


export function getTrans(query) {
  return request({
    url: '/system/transaction/transactionOverview',
    method: 'get',
    params: query
  })
}

